<?php
include_once('common/header.php');
if($AppUI->id <= 0 || (isset($_SESSION['product']) && ($_SESSION['product']&1<<2)==0)) {
	Vfriend_Function::redirect(HOST_BACKEND);
}
$strRefer	   = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : (HOST_BACKEND . 'category/index');
$intCategoryId = $objRequest->getParam('categoryid',0);
$objCategory   = new Category();
$arrRow		   = $objCategory->get($intCategoryId);
if(isset($arrRow['parentid']) && $arrRow['parentid'] > 0) {
	$objCommon	 = new Vfriend_Common();
	$arrParent	 = $objCommon->getCategory(0,9);	
	$this->view->arrParent = $arrParent;
}
$this->view->intCategoryId 	= $intCategoryId;
$this->view->row 			= $arrRow;
$this->view->refer 			= $strRefer;
?>